package cn.com.nes.site.entity.em.project;

import java.util.HashMap;
import java.util.Map;

public enum ProjectServiceUserEnableEnum {

    enable(0, "启用"),
    disable(1, "不启用"),
    ;

    private Integer key;
    private String value;

    ProjectServiceUserEnableEnum(Integer key, String value) {
        this.key = key;
        this.value = value;
    }

    public Integer getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static String getVal(Integer key) {
        Map<Integer, String> map = new HashMap<>();
        for (ProjectServiceUserEnableEnum value : values()) {
            map.put(value.getKey(), value.getValue());
        }
        return map.get(key);
    }

}
